package cn.sofwin.blog.service;

import cn.sofwin.blog.entity.Article;
import cn.sofwin.blog.entity.User;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * 服务层
 * @author LetCode
 * @since 1.0
 *
 */
public interface ArticleService {

    SqlSession getSession();

    List<Article> all();

    Article getArticleById(int id);

    void writeArticle(User user, String title, String summary, String content);

    void edit(String id, String summary, String content);

    void deleteArticle(int id);
}